package org.zhxy.zhxy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.zhxy.zhxy.entity.AppointRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import org.zhxy.zhxy.entity.Classroom;
import org.zhxy.zhxy.entity.dto.ClassRoomAppointAddDto;

import java.util.List;

/**
 * @InterfaceName AppointRecordService
 * @Description 预约记录表(AppointRecord)表服务接口
 * @author yayong
 * @date 2024-10-19 20:38:05
 * @Version 1.0
 **/
public interface AppointRecordService  extends IService<AppointRecord>{

 /**
  * 预约申请审核
  * @param id
  * @param status
  * @return
  */
 boolean updateStatusById(Integer id, Integer status);
 List<AppointRecord> selectRoomByTime(Long startTime, Long endTime);

    void appoint(ClassRoomAppointAddDto classRoomAppointAddDto);

    List<AppointRecord> selectMyAppoint(String status);


    void canleAppoint(String id);

    List<AppointRecord> selectRoomAndIsAppointByTime(Long startTime, Long endTime);

    Page<AppointRecord> listAppoint(int page, int pageSize);

    Page<AppointRecord> queryAppoint(String studentId, String applyDate, Long startTime, Long endTime, int page, int pageSize);

    Page<AppointRecord> queryAppointRecord(String studentId, int page, int pageSize);
}

